﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_TheKhoVatTu : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("Bt2Phai")]
        private Button _Bt2Phai;
        [AccessedThroughProperty("bt2trai")]
        private Button _bt2trai;
        [AccessedThroughProperty("BtPhai")]
        private Button _BtPhai;
        [AccessedThroughProperty("BtTrai")]
        private Button _BtTrai;
        [AccessedThroughProperty("CboDonVi")]
        private ComboBox _CboDonVi;
        [AccessedThroughProperty("CboKhoHang")]
        private ComboBox _CboKhoHang;
        [AccessedThroughProperty("CboNhom")]
        private ComboBox _CboNhom;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("GroupBox3")]
        private GroupBox _GroupBox3;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("OptDayDu")]
        private RadioButton _OptDayDu;
        [AccessedThroughProperty("OptInSoLuong")]
        private RadioButton _OptInSoLuong;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtSearchCode")]
        private TextBox _TxtSearchCode;
        [AccessedThroughProperty("TxtSearchName")]
        private TextBox _TxtSearchName;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("VSList")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSList;
        [AccessedThroughProperty("VSListDaChon")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSListDaChon;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsDMHangHoa objDMHangHoa;
        private DataView pData;

        public Frm_TheKhoVatTu()
        {
            base.Load += new EventHandler(this.Frm_TheKhoDauTu_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objDMHangHoa = new clsDMHangHoa();
            this.InitializeComponent();
        }

        private void Bt2Phai_Click(object sender, EventArgs e)
        {
            int num2 = this.VSList.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                NewLateBinding.LateCall(this.VSListDaChon, null, "AddItem", new object[] { Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(this.VSList[i, 0], "\t"), this.VSList[i, 1]), "\t"), this.VSList[i, 2]) }, null, null, null, true);
            }
            this.VSList.DataSource = null;
            this.VSList.Rows.Count = 1;
            C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
            vSList.Cols[0].Visible = false;
            vSList.Cols[1].Width = 100;
            vSList[0, 1] = modGeneral.Tranlated("M\x00e3 h\x00e0ng h\x00f3a", "");
            vSList[0, 2] = modGeneral.Tranlated("T\x00ean h\x00e0ng h\x00f3a", "");
            vSList = null;
        }

        private void bt2trai_Click(object sender, EventArgs e)
        {
            this.VSListDaChon.Rows.Count = 1;
            this.LoadData();
        }

        private void BtPhai_Click(object sender, EventArgs e)
        {
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                NewLateBinding.LateCall(this.VSListDaChon, null, "AddItem", new object[] { Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(this.VSList[this.VSList.Row, 0], "\t"), this.VSList[this.VSList.Row, 1]), "\t"), this.VSList[this.VSList.Row, 2]) }, null, null, null, true);
                this.VSList.RemoveItem(this.VSList.Row);
            }
        }

        private void BtTrai_Click(object sender, EventArgs e)
        {
            if ((this.VSListDaChon.Rows.Count != 1) && (this.VSListDaChon.Row > 0))
            {
                NewLateBinding.LateCall(this.VSList, null, "AddItem", new object[] { Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(this.VSListDaChon[this.VSListDaChon.Row, 0], "\t"), this.VSListDaChon[this.VSListDaChon.Row, 1]), "\t"), this.VSListDaChon[this.VSListDaChon.Row, 2]) }, null, null, null, true);
                this.VSListDaChon.RemoveItem(this.VSListDaChon.Row);
            }
        }

        private void CboNhom_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            this.PrintReport();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_TheKhoDauTu_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboNhom, modGeneral.ListDanhMuc.NhomHangHoa, true, "", "");
                BuildComboModule.BuildCombo(this.CboKhoHang, modGeneral.ListDanhMuc.KhoHang, false, "", "");
                this.CboKhoHang.SelectedValue = modGeneral.H_CLIENT;
                BuildComboModule.BuildCombo(this.CboDonVi, modGeneral.ListDanhMuc.DonVi, false, "", "");
                this.CboDonVi.SelectedValue = modGeneral.H_CLIENT;
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                this.LoadData();
            }
        }

        public DataTable GetDataTheKho(string pKhoaBC)
        {
            DataTable table;
            IDataParameter[] commandParameters = new IDataParameter[6];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, this.CboDonVi.SelectedValue.ToString().Trim());
                commandParameters[1] = DBHelper.createParameter("@KhoaBaoCao", DbType.Int64, ParameterDirection.Input, pKhoaBC);
                commandParameters[2] = DBHelper.createParameter("@KhoaKho", DbType.Int64, ParameterDirection.Input, RuntimeHelpers.GetObjectValue(this.CboKhoHang.SelectedValue));
                commandParameters[3] = DBHelper.createParameter("@TuNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtTuNgay.Text));
                commandParameters[4] = DBHelper.createParameter("@DenNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtDenNgay.Text));
                commandParameters[5] = DBHelper.createParameter("@Language", DbType.Int64, ParameterDirection.Input, modGeneral.H_LANGUAGE);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "ST_BC_TheKhoVatTu", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public string GetListKeys()
        {
            string str2 = "";
            int num2 = this.VSListDaChon.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                if (str2.Trim() == "")
                {
                    str2 = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject("'", this.VSListDaChon[i, 0]), "'"));
                }
                else
                {
                    str2 = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(str2 + ",'", this.VSListDaChon[i, 0]), "'"));
                }
            }
            return str2;
        }

        public void InitDataDanhMuc(string pKhoaBC)
        {
            int num2 = this.VSListDaChon.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                object obj2 = "INSERT INTO BC_DuLieuDanhMuc (KhoaDanhMuc, KhoaBaoCao, Loai)  VALUES ('" + LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDaChon[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "','" + pKhoaBC.Trim() + "','')";
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, Conversions.ToString(obj2), new IDataParameter[0]);
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_TheKhoVatTu));
            this.GroupBox1 = new GroupBox();
            this.Panel1 = new Panel();
            this.Label8 = new Label();
            this.Label7 = new Label();
            this.TxtSearchName = new TextBox();
            this.TxtSearchCode = new TextBox();
            this.VSList = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel2 = new Panel();
            this.Label18 = new Label();
            this.CboNhom = new ComboBox();
            this.CboKhoHang = new ComboBox();
            this.Label2 = new Label();
            this.Label1 = new Label();
            this.CboDonVi = new ComboBox();
            this.GroupBox2 = new GroupBox();
            this.VSListDaChon = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.BtPhai = new Button();
            this.Bt2Phai = new Button();
            this.BtTrai = new Button();
            this.bt2trai = new Button();
            this.GroupBox3 = new GroupBox();
            this.OptInSoLuong = new RadioButton();
            this.OptDayDu = new RadioButton();
            this.Label3 = new Label();
            this.TxtDenNgay = new DateTimePicker();
            this.Label4 = new Label();
            this.TxtTuNgay = new DateTimePicker();
            this.GroupBox1.SuspendLayout();
            this.Panel1.SuspendLayout();
            this.VSList.BeginInit();
            this.Panel2.SuspendLayout();
            this.GroupBox2.SuspendLayout();
            this.VSListDaChon.BeginInit();
            this.GroupBox3.SuspendLayout();
            this.SuspendLayout();
            this.GroupBox1.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox1.Controls.Add(this.Panel1);
            this.GroupBox1.Controls.Add(this.VSList);
            this.GroupBox1.Controls.Add(this.Panel2);
            Point point = new Point(1, 2);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            Size size = new Size(0x14d, 0x1dc);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Danh mục vật tư";
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.Panel1.Controls.Add(this.Label8);
            this.Panel1.Controls.Add(this.Label7);
            this.Panel1.Controls.Add(this.TxtSearchName);
            this.Panel1.Controls.Add(this.TxtSearchCode);
            point = new Point(6, 0x1b0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x142, 0x25);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x36;
            this.Label8.AutoSize = true;
            this.Label8.BackColor = Color.Transparent;
            point = new Point(0x57, 0x17);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x2a, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x13;
            this.Label8.Text = "T\x00ecm t\x00ean";
            this.Label7.AutoSize = true;
            this.Label7.BackColor = Color.Transparent;
            point = new Point(-3, 0x18);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x29, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x12;
            this.Label7.Text = "T\x00ecm m\x00e3";
            point = new Point(90, 3);
            this.TxtSearchName.Location = point;
            this.TxtSearchName.Name = "TxtSearchName";
            size = new Size(0xe5, 20);
            this.TxtSearchName.Size = size;
            this.TxtSearchName.TabIndex = 1;
            point = new Point(0, 3);
            this.TxtSearchCode.Location = point;
            this.TxtSearchCode.Name = "TxtSearchCode";
            size = new Size(90, 20);
            this.TxtSearchCode.Size = size;
            this.TxtSearchCode.TabIndex = 0;
            this.VSList.AllowEditing = false;
            this.VSList.AutoResize = false;
            this.VSList.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSList.ColumnInfo = "3,0,0,0,0,85,Columns:0{Caption:\"Kh\x00f3a\";Visible:False;}\t1{Width:109;Caption:\"M\x00e3 vật tư\";Style:\"DataType:System.String;TextAlign:LeftCenter;\";}\t2{Caption:\"T\x00ean vật tư\";}\t";
            this.VSList.ExtendLastCol = true;
            this.VSList.FocusRect = FocusRectEnum.None;
            point = new Point(6, 0x31);
            this.VSList.Location = point;
            this.VSList.Name = "VSList";
            this.VSList.Rows.Count = 1;
            this.VSList.Rows.DefaultSize = 0x11;
            this.VSList.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x142, 380);
            this.VSList.Size = size;
            this.VSList.StyleInfo = manager.GetString("VSList.StyleInfo");
            this.VSList.TabIndex = 0x35;
            this.VSList.VisualStyle = VisualStyle.Office2007Blue;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.Panel2.Controls.Add(this.Label18);
            this.Panel2.Controls.Add(this.CboNhom);
            this.Panel2.Dock = DockStyle.Top;
            point = new Point(3, 0x10);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x147, 0x1f);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x34;
            this.Label18.AutoSize = true;
            this.Label18.BackColor = Color.Transparent;
            point = new Point(4, 8);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x41, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 30;
            this.Label18.Text = "Nh\x00f3m vật tư";
            this.CboNhom.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboNhom.FormattingEnabled = true;
            point = new Point(0x4b, 5);
            this.CboNhom.Location = point;
            this.CboNhom.Name = "CboNhom";
            size = new Size(0xf7, 0x15);
            this.CboNhom.Size = size;
            this.CboNhom.TabIndex = 0x1d;
            this.CboKhoHang.FormattingEnabled = true;
            point = new Point(0x49, 0x40);
            this.CboKhoHang.Location = point;
            this.CboKhoHang.Name = "CboKhoHang";
            size = new Size(0xf9, 0x15);
            this.CboKhoHang.Size = size;
            this.CboKhoHang.TabIndex = 0x34;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(6, 0x43);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x35, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x33;
            this.Label2.Text = "Kho h\x00e0ng";
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(6, 0x2b);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x26, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x36;
            this.Label1.Text = "Đơn vị";
            this.CboDonVi.FormattingEnabled = true;
            point = new Point(0x49, 40);
            this.CboDonVi.Location = point;
            this.CboDonVi.Name = "CboDonVi";
            size = new Size(0xf9, 0x15);
            this.CboDonVi.Size = size;
            this.CboDonVi.TabIndex = 0x35;
            this.GroupBox2.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox2.Controls.Add(this.VSListDaChon);
            point = new Point(0x175, 130);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x149, 0x13f);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 0x37;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Danh mục vật tư đ\x00e3 chọn";
            this.VSListDaChon.AutoResize = false;
            this.VSListDaChon.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSListDaChon.ColumnInfo = "3,0,0,0,0,85,Columns:0{Caption:\"Kh\x00f3a\";Visible:False;}\t1{Width:105;Caption:\"M\x00e3 vật tư\";Style:\"DataType:System.String;TextAlign:LeftCenter;\";}\t2{Caption:\"T\x00ean vật tư\";}\t";
            this.VSListDaChon.ExtendLastCol = true;
            this.VSListDaChon.FocusRect = FocusRectEnum.None;
            point = new Point(6, 0x13);
            this.VSListDaChon.Location = point;
            this.VSListDaChon.Name = "VSListDaChon";
            this.VSListDaChon.Rows.Count = 1;
            this.VSListDaChon.Rows.DefaultSize = 0x11;
            this.VSListDaChon.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x13e, 0x12a);
            this.VSListDaChon.Size = size;
            this.VSListDaChon.StyleInfo = manager.GetString("VSListDaChon.StyleInfo");
            this.VSListDaChon.TabIndex = 0x36;
            this.VSListDaChon.VisualStyle = VisualStyle.Office2007Blue;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x26d, 0x1c5);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x52, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 0x39;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x21a, 0x1c5);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x51, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 0x38;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            this.BtPhai.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x153, 0xc6);
            this.BtPhai.Location = point;
            this.BtPhai.Name = "BtPhai";
            size = new Size(0x1f, 0x17);
            this.BtPhai.Size = size;
            this.BtPhai.TabIndex = 0x3a;
            this.BtPhai.Text = ">";
            this.BtPhai.UseVisualStyleBackColor = true;
            this.Bt2Phai.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x153, 0xe3);
            this.Bt2Phai.Location = point;
            this.Bt2Phai.Name = "Bt2Phai";
            size = new Size(0x1f, 0x17);
            this.Bt2Phai.Size = size;
            this.Bt2Phai.TabIndex = 0x3b;
            this.Bt2Phai.Text = ">>";
            this.Bt2Phai.UseVisualStyleBackColor = true;
            this.BtTrai.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x152, 0x11e);
            this.BtTrai.Location = point;
            this.BtTrai.Name = "BtTrai";
            size = new Size(0x1f, 0x17);
            this.BtTrai.Size = size;
            this.BtTrai.TabIndex = 60;
            this.BtTrai.Text = "<";
            this.BtTrai.UseVisualStyleBackColor = true;
            this.bt2trai.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x153, 0x13b);
            this.bt2trai.Location = point;
            this.bt2trai.Name = "bt2trai";
            size = new Size(0x1f, 0x17);
            this.bt2trai.Size = size;
            this.bt2trai.TabIndex = 0x3d;
            this.bt2trai.Text = "<<";
            this.bt2trai.UseVisualStyleBackColor = true;
            this.GroupBox3.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox3.Controls.Add(this.OptInSoLuong);
            this.GroupBox3.Controls.Add(this.OptDayDu);
            this.GroupBox3.Controls.Add(this.Label3);
            this.GroupBox3.Controls.Add(this.TxtDenNgay);
            this.GroupBox3.Controls.Add(this.Label4);
            this.GroupBox3.Controls.Add(this.TxtTuNgay);
            this.GroupBox3.Controls.Add(this.Label2);
            this.GroupBox3.Controls.Add(this.CboKhoHang);
            this.GroupBox3.Controls.Add(this.CboDonVi);
            this.GroupBox3.Controls.Add(this.Label1);
            point = new Point(0x174, 3);
            this.GroupBox3.Location = point;
            this.GroupBox3.Name = "GroupBox3";
            size = new Size(0x148, 0x74);
            this.GroupBox3.Size = size;
            this.GroupBox3.TabIndex = 0x3e;
            this.GroupBox3.TabStop = false;
            this.GroupBox3.Text = "T\x00f9y chọn";
            this.OptInSoLuong.AutoSize = true;
            this.OptInSoLuong.BackColor = Color.Transparent;
            point = new Point(0xd7, 0x5d);
            this.OptInSoLuong.Location = point;
            this.OptInSoLuong.Name = "OptInSoLuong";
            size = new Size(0x65, 0x11);
            this.OptInSoLuong.Size = size;
            this.OptInSoLuong.TabIndex = 0x45;
            this.OptInSoLuong.Text = "In theo số lượng";
            this.OptInSoLuong.UseVisualStyleBackColor = false;
            this.OptDayDu.AutoSize = true;
            this.OptDayDu.BackColor = Color.Transparent;
            this.OptDayDu.Checked = true;
            point = new Point(0x4c, 0x5d);
            this.OptDayDu.Location = point;
            this.OptDayDu.Name = "OptDayDu";
            size = new Size(120, 0x11);
            this.OptDayDu.Size = size;
            this.OptDayDu.TabIndex = 0x44;
            this.OptDayDu.TabStop = true;
            this.OptDayDu.Text = "In số lượng v\x00e0 gi\x00e1 trị";
            this.OptDayDu.UseVisualStyleBackColor = false;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new Point(0xb2, 0x17);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x35, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x43;
            this.Label3.Text = "Đến n&g\x00e0y";
            this.TxtDenNgay.Format = DateTimePickerFormat.Custom;
            point = new Point(0xed, 0x10);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x55, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x42;
            this.Label4.AutoSize = true;
            this.Label4.BackColor = Color.Transparent;
            point = new Point(6, 20);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x2e, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x41;
            this.Label4.Text = "Từ &ng\x00e0y";
            this.TxtTuNgay.Format = DateTimePickerFormat.Custom;
            point = new Point(0x49, 0x10);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x53, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 0x40;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x2c3, 0x1e1);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.GroupBox3);
            this.Controls.Add(this.bt2trai);
            this.Controls.Add(this.BtTrai);
            this.Controls.Add(this.Bt2Phai);
            this.Controls.Add(this.BtPhai);
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox2);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_TheKhoVatTu";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-0023";
            this.Text = "THE KHO VAT TU";
            this.GroupBox1.ResumeLayout(false);
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.VSList.EndInit();
            this.Panel2.ResumeLayout(false);
            this.Panel2.PerformLayout();
            this.GroupBox2.ResumeLayout(false);
            this.VSListDaChon.EndInit();
            this.GroupBox3.ResumeLayout(false);
            this.GroupBox3.PerformLayout();
            this.ResumeLayout(false);
        }

        public void LoadData()
        {
            string str2 = "";
            string strConditions = "";
            string listKeys = this.GetListKeys();
            str2 = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNhom.SelectedValue), "", modGeneral.TypeOfValue.String).ToString();
            if (str2.Trim() != "")
            {
                strConditions = " KhoaNhom = '" + str2 + "'";
            }
            if (listKeys.Trim() != "")
            {
                strConditions = strConditions + " AND Khoa NOT IN (" + listKeys + ")";
            }
            this.pData = new DataView(this.objDMHangHoa.ShowList(strConditions));
            this.VSList.DataSource = this.pData;
            C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
            vSList.Cols[0].Visible = false;
            vSList.Cols[1].Width = 100;
            vSList[0, 1] = modGeneral.Tranlated("M\x00e3 h\x00e0ng h\x00f3a", "");
            vSList[0, 2] = modGeneral.Tranlated("T\x00ean h\x00e0ng h\x00f3a", "");
            vSList = null;
        }

        public void PrintReport()
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboKhoHang.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn kho hàng đ\x00eả in thẻ kho!", ""));
            }
            else if (this.VSListDaChon.Rows.Count == 1)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn hàng hóa đ\x00eả in thẻ kho!", ""));
            }
            else
            {
                this.Cursor = Cursors.WaitCursor;
                string pKhoaBC = modGeneral.CreatKey("BC_DuLieuDanhMuc", 10, "");
                this.InitDataDanhMuc(pKhoaBC);
                DataTable dataTheKho = this.GetDataTheKho(pKhoaBC);
                if (dataTheKho != null)
                {
                    if (dataTheKho.Rows.Count == 0)
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
                    }
                    else
                    {
                        object obj2;
                        if (this.OptDayDu.Checked)
                        {
                            obj2 = new Rpt_TheKhoVatTu();
                        }
                        else
                        {
                            obj2 = new Rpt_TheKhoVatTuSoLuong();
                        }
                        try
                        {
                            object[] arguments = new object[] { dataTheKho };
                            bool[] copyBack = new bool[] { true };
                            NewLateBinding.LateCall(obj2, null, "SetDataSource", arguments, null, null, copyBack, true);
                            if (copyBack[0])
                            {
                                dataTheKho = (DataTable) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0]), typeof(DataTable));
                            }
                            if (modGeneral.H_LANGUAGE == "VIET")
                            {
                                NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, "") }, null, null, null, true);
                            }
                            else
                            {
                                NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, "") }, null, null, null, true);
                            }
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 5, modGeneral.Tranlated("THẺ KHO VẬT TƯ", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 6, modGeneral.Tranlated("M\x00e3 số", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 7, modGeneral.Tranlated("T\x00ean h\x00e0ng h\x00f3a", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 8, modGeneral.Tranlated("Số chứng từ", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 9, modGeneral.Tranlated("Ng\x00e0y th\x00e1ng", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 10, modGeneral.Tranlated("Diễn giải", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 11, modGeneral.Tranlated("Nhập", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 12, modGeneral.Tranlated("Xuất", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 13, modGeneral.Tranlated("Tồn", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 14, modGeneral.Tranlated("Trị gi\x00e1", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 15, modGeneral.Tranlated("Đơn gi\x00e1 ", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x10, modGeneral.Tranlated("Tổng cộng", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x11, modGeneral.Tranlated("Gi\x00e1m đốc", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x12, modGeneral.Tranlated("Kế to\x00e1n trưởng", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x13, modGeneral.Tranlated("Lập biểu", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 20, modGeneral.Tranlated("Ng\x00e0y .... th\x00e1ng .... năm ............", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x15, modGeneral.Tranlated("Đơn vị t\x00ednh", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x16, modGeneral.Tranlated("T\x00ean, nh\x00e3n hiệu, quy c\x00e1ch vật tư", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x17, modGeneral.Tranlated("Từ ng\x00e0y", "") + ":" + this.TxtTuNgay.Text + " " + modGeneral.Tranlated("đến ng\x00e0y:", "") + this.TxtDenNgay.Text }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x18, modGeneral.Tranlated("STT", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x19, modGeneral.Tranlated("Số lượng", "") }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x1a, modGeneral.Tranlated("Tồn đầu ng\x00e0y", "") + ": " + this.TxtTuNgay.Text }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x1b, modGeneral.Tranlated("Tồn cuối ng\x00e0y", "") + ": " + this.TxtDenNgay.Text }, null, null, null, true);
                            NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x1c, modGeneral.Tranlated("Kho", "") + ": " + this.CboKhoHang.Text }, null, null, null, true);
                            MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = RuntimeHelpers.GetObjectValue(obj2);
                            MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                            MyProject.Forms.Frm_ViewReport.ShowDialog();
                            this.Cursor = Cursors.Default;
                        }
                        catch (Exception exception1)
                        {
                            ProjectData.SetProjectError(exception1);
                            Exception exception = exception1;
                            this.Cursor = Cursors.Default;
                            MessageBox.Show(exception.Message.ToString());
                            ProjectData.ClearProjectError();
                        }
                    }
                }
            }
        }

        public void SearchHangHoa(string field, string str)
        {
            string str2 = field + " LIKE '" + str + "%'";
            this.pData.RowFilter = str2;
            if (this.VSList.Rows.Count != 1)
            {
                this.VSList.Select(1, 0, 1, this.VSList.Cols.Count - 1);
            }
        }

        private void TxtSearchCode_TextChanged(object sender, EventArgs e)
        {
            this.SearchHangHoa("Ma", this.TxtSearchCode.Text);
        }

        private void TxtSearchName_TextChanged(object sender, EventArgs e)
        {
            this.SearchHangHoa("Ten", this.TxtSearchName.Text);
        }

        private void TxtTuNgay_LostFocus(object sender, EventArgs e)
        {
            if (LVYModule.sRight(this.TxtTuNgay.Text, 7) != LVYModule.sRight(this.TxtDenNgay.Text, 7))
            {
                this.TxtDenNgay.Text = DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sRight(this.TxtTuNgay.Text, 4)), Conversions.ToInteger(LVYModule.sMid(this.TxtTuNgay.Text, 4, 2))).ToString() + "/" + LVYModule.sRight(this.TxtTuNgay.Text, 7);
            }
        }

        internal virtual Button Bt2Phai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Bt2Phai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.Bt2Phai_Click);
                if (this._Bt2Phai != null)
                {
                    this._Bt2Phai.Click -= handler;
                }
                this._Bt2Phai = value;
                if (this._Bt2Phai != null)
                {
                    this._Bt2Phai.Click += handler;
                }
            }
        }

        internal virtual Button bt2trai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._bt2trai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.bt2trai_Click);
                if (this._bt2trai != null)
                {
                    this._bt2trai.Click -= handler;
                }
                this._bt2trai = value;
                if (this._bt2trai != null)
                {
                    this._bt2trai.Click += handler;
                }
            }
        }

        internal virtual Button BtPhai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._BtPhai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.BtPhai_Click);
                if (this._BtPhai != null)
                {
                    this._BtPhai.Click -= handler;
                }
                this._BtPhai = value;
                if (this._BtPhai != null)
                {
                    this._BtPhai.Click += handler;
                }
            }
        }

        internal virtual Button BtTrai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._BtTrai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.BtTrai_Click);
                if (this._BtTrai != null)
                {
                    this._BtTrai.Click -= handler;
                }
                this._BtTrai = value;
                if (this._BtTrai != null)
                {
                    this._BtTrai.Click += handler;
                }
            }
        }

        internal virtual ComboBox CboDonVi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonVi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonVi = value;
            }
        }

        internal virtual ComboBox CboKhoHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboKhoHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboKhoHang = value;
            }
        }

        internal virtual ComboBox CboNhom
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNhom;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboNhom_SelectedIndexChanged);
                if (this._CboNhom != null)
                {
                    this._CboNhom.SelectedIndexChanged -= handler;
                }
                this._CboNhom = value;
                if (this._CboNhom != null)
                {
                    this._CboNhom.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual GroupBox GroupBox3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox3 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual RadioButton OptDayDu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptDayDu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptDayDu = value;
            }
        }

        internal virtual RadioButton OptInSoLuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptInSoLuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptInSoLuong = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual TextBox TxtSearchCode
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchCode;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchCode_TextChanged);
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged -= handler;
                }
                this._TxtSearchCode = value;
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtSearchName
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchName;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchName_TextChanged);
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged -= handler;
                }
                this._TxtSearchName = value;
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged += handler;
                }
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTuNgay_LostFocus);
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus -= handler;
                }
                this._TxtTuNgay = value;
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSList
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSList;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSList = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSListDaChon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSListDaChon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSListDaChon = value;
            }
        }
    }
}

